class UnReadMsgNumModel {
  UnReadMsgNumModel({
    this.dtCount,
    this.incomeCount,
    this.msgCount,
  });

  UnReadMsgNumModel.fromJson(dynamic json) {
    dtCount = json['dtCount'];
    incomeCount = json['incomeCount'];
    msgCount = json['msgCount'];
  }
  num? dtCount;
  num? incomeCount;
  num? msgCount;
  UnReadMsgNumModel copyWith({
    num? dtCount,
    num? incomeCount,
    num? msgCount,
  }) =>
      UnReadMsgNumModel(
        dtCount: dtCount ?? this.dtCount,
        incomeCount: incomeCount ?? this.incomeCount,
        msgCount: msgCount ?? this.msgCount,
      );
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['dtCount'] = dtCount;
    map['incomeCount'] = incomeCount;
    map['msgCount'] = msgCount;
    return map;
  }

  num get allNum => (dtCount ?? 0) + (incomeCount ?? 0) + (msgCount ?? 0);
}
